<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>scicos_simulate</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function  </center>
    <p>
      <b>scicos_simulate</b> -  Function for running scicos simulation in batch mode.</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>Info=scicos_simulate(scs_m,Info[,%scicos_context][,flag])</tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>scs_m</b>
        </tt>: scicos diagram (obtained by "load file.cos"). Note that the
    version of file.cos must be the current version. If not, load into
    scicos and save. 
       </li>
      <li>
        <tt>
          <b>Info</b>
        </tt>: a list. It must be list() at the first call, then use output
    Info as input Info for the next calls. Info contains compilation
    and simulation information and is used to avoid recompilation when
    not needed. 
       </li>
      <li>
        <tt>
          <b>%scicos_context</b>
        </tt>:  a scilab struct containing values of symbolic variables used
    in the context and Scicos blocks. This is often used to change a
    parameter in the diagram context. In that case, make sure that in
    the diagram context the variable is defined such that it can be
    modified. Say a variable "a" is to be defined in the context
    having value 1, and later in batch mode, we want to change the
    value of "a". In that case, in the context of the diagram place:
    if ~exists('a') then a=1,end If you want then to run the
    simulation in batch mode using the value a=2, set:
    %scicos_context.a=2 
       </li>
      <li>
        <tt>
          <b>flag</b>
        </tt>
       : string. If it equals 'nw' (no window), then blocks using
    graphical windows are not executed. Note that the list of such
    blocks must be updated as new blocks are added. 
       </li>
      <li>
        <tt>
          <b>Info</b>
        </tt>
       : contains compilation and simulation information and is used
    to avoid recompilation when not needed. Normally it should not be modified.
       </li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      This function is used to simulate scicos diagrams in batch
      mode. It requires the scs_m structure which can be obtained by
      loading in Scilab the .cos file (e.g. load
      mydiagram.cos).
     </p>
    <p>
       Contrary to the function <a href="scicosim.htm">
        <tt>
          <b> scicosim</b>
        </tt>
      </a>, the diagram
      need not be compiled before being saved.
     </p>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="scicosim.htm">
        <tt>
          <b> scicosim</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="scicos.htm">
        <tt>
          <b> scicos</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="steadycos.htm">
        <tt>
          <b> steadycos</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="lincos.htm">
        <tt>
          <b> lincos</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
    <h3>
      <font color="blue">Authors</font>
    </h3>
    <dl>
      <dd>
        <b>Ramine Nikoukhah</b>
      </dd>
    </dl>
  </body>
</html>
